package maosy.oauth2.password.test.spring.service

import maosy.oauth2.password.service.UserService
import maosy.oauth2.password.test.spring.SpringTest
import org.junit.Test
import org.springframework.beans.factory.annotation.Autowired

class UserServiceTest : SpringTest() {

    @Autowired
    lateinit var userService: UserService

    @Test
    fun getUserTest() {

        try {
            val rest = userService.getUserByUserName("admin")

            println(gson.toJson(rest))
        } catch (e: Exception) {

            println(e.message)
        }
    }
}